<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>云存储系统</title>
    <link rel="stylesheet" href="/static/css/main.css">
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>☁️ 云存储系统</h1>
            <p>高性能文件存储与分享平台</p>
        </div>
        
        <div class="content">
            <!-- 文件上传区域 -->
            <div class="upload-section">
                <h2 class="section-title">📤 文件上传</h2>
                <div class="upload-area" onclick="document.getElementById('fileInput').click()">
                    <div class="icon">📁</div>
                    <div class="text">点击选择文件或拖拽文件到此处</div>
                    <div class="subtext">支持任意格式文件，最大1GB</div>
                </div>
                <input type="file" id="fileInput" onchange="uploadFile()">
                <div class="progress" id="uploadProgress">
                    <div class="progress-bar" id="progressBar"></div>
                </div>
                <div class="result" id="uploadResult"></div>
            </div>
            
            <!-- 文件下载区域 -->
            <div class="download-section">
                <h2 class="section-title">📥 文件下载</h2>
                <div class="input-group">
                    <input type="text" id="fileId" placeholder="请输入6位文件ID" maxlength="6">
                    <button class="btn btn-primary" onclick="downloadFile()">下载文件</button>
                    <button class="btn btn-primary" onclick="getFileInfo()">查看信息</button>
                </div>
                <div class="result" id="downloadResult"></div>
            </div>
        </div>
    </div>

    <script src="/static/js/main.js"></script>
</body>
</html> 